package net.zjitc.service;

import net.zjitc.domain.Product;

import java.sql.SQLException;
import java.util.List;

/**
 * @Author admin
 * @Date 2019/2/25 10:46
 */
public interface ProductService {
    List<Product> findAll() throws SQLException;
    //添加
    void add(Product p) throws SQLException;

    //删除
    void delete(String pid) throws SQLException;

    //修改
    void update (Product product,String pid) throws SQLException;

    Product fingById(String pid) throws SQLException;


}
